package com.danco.training.zaneuskaya.domain.comparator;

import java.io.Serializable;
import java.util.Comparator;

import com.danco.training.zaneuskaya.domain.entity.Book;

public class BookComparatorByPublicationDate implements Comparator<Book>,Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8007241908156307002L;

	public int compare(Book o1, Book o2) {

		return o1.getPublicationDate().compareTo(o2.getPublicationDate());
	}

}
